import { defineStore } from "pinia";

export const useCounterStore = defineStore('counter', {
  // 开启数据持久化
  persist: true,
  state: () => ({
    //菜单导航
    navlist:[],
    //导航栏伸缩
    collapse: false,
  }),

  getters: {},
  actions: {
    setnavlist(list){
        this.navlist=list
    },
    changecollapse(){
        this.collapse=!this.collapse
    }
  },
});
